package com.system.service.impl;

import com.system.mapper.OrganizationTypeMapper;
import com.system.pojo.OrganizationType;
import com.system.service.OrganizationTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("organizationTypeService")
public class OrganizationTypeServiceImpl implements OrganizationTypeService {
    @Autowired
    private OrganizationTypeMapper organizationTypeMapper;
    @Override
    public List<OrganizationType> select(OrganizationType organizationType) {
        return organizationTypeMapper.select(organizationType);
    }

    @Override
    public int insert(OrganizationType organizationType) {
        return organizationTypeMapper.insert(organizationType);
    }

    @Override
    public int update(OrganizationType organizationType) {
        return organizationTypeMapper.update(organizationType);
    }

    @Override
    public int delete(String id) {
        return organizationTypeMapper.delete(id);
    }

    public OrganizationTypeMapper getOrganizationTypeMapper() {
        return organizationTypeMapper;
    }

    public void setOrganizationTypeMapper(OrganizationTypeMapper organizationTypeMapper) {
        this.organizationTypeMapper = organizationTypeMapper;
    }
}
